<?php

declare(strict_types=1);

namespace app\common\model\hrm;

use think\Model;
use app\common\traits\ModelTrait;

/**
 * 单位表-模型
 * @author kaige
 * @update 2022-06-17
 * @copyright ©2022 泉州市盛筑信息科技有限公司 版权所有
 */
class HrmCompany extends Model
{
    //开启自动写入时间戳字段
    protected $autoWriteTimestamp = true;
    protected $createTime = 'create_time';
    protected $updateTime = null;

    // 设置字段信息(避免多一次查询的开销)
    protected $schema = [
        'id'          => 'int',
        'pid'         => 'int',
        'name'        => 'string',
        'fullname'    => 'string',
        'code'        => 'string',
        'sort'        => 'int',
        'tel'         => 'string',
        'fax'         => 'string',
        'logo'        => 'string',
        'headman'     => 'string',
        'headid'      => 'int',
        'rate_id'     => 'int',
        'bl_code'     => 'string',
        'bl_img'      => 'string',
        'bl_sfz_name' => 'string',
        'bl_phone'    => 'string',
        'bl_sfz_img'  => 'string',
        'bl_sfz_code' => 'string',
        'bl_xkz_code' => 'string',
        'bl_xkz_img'  => 'string',
        'address'     => 'string',
        'lat'         => 'string',
        'lon'         => 'string',
        'nation'      => 'string',
        'province'    => 'string',
        'city'        => 'string',
        'district'    => 'string',
        'street'      => 'string',
        'status'      => 'int',
        'create_time' => 'int',
    ];

    use ModelTrait;
}
